package cn.myframe.entity.sys;

import java.util.List;

public class CheckData {

	/**关联表**/
	private String table;
	/**关联表的id字段**/
	private String id;
	/**关联表的关联字段**/
	private String assPro;
	/**关联表的name字段**/
	private String name;
	/**关联表的状态字段**/
	private String statusField = "STATUS";
	/**关联表的描述**/
	private String desc;
	/**被关联表**/
	private String assTable;
	/**被关联表的id字段**/
	private String assId;
	/**被关联表的name字段**/
	private String assName;
	/**被关联表的status字段**/
	private String assStatusField  = "STATUS";
	/**被关联表的描述**/
	private String assDesc; 
	/**中间表**/
	private String midTable;
	/**中间表的关联ID**/
	private String midId;
	/**中间表的被关联ID**/
	private String assMidId;
	/**操作的IDs**/
	private List<Object> ids; 
	/**类型，1为普通关联 2为带中间表关联3黑名单的特殊**/
	private String type;
	/**中间表类型字段**/
	private String midType;
	/**审核状态**/
	private String[] status;
	/**策略关联类型**/
	private String mapType;
	/**被关联表的Code字段(当普通关联时，关联字段存的不是被关联表的ID时，用assCode来替换)**/
	private String assCode;
	
	
/*	public CheckData(String table,String id,String assPro,String name,String desc,
			String assTable,String assId, String assName,String assDesc,String type){
		this.table = table;
		this.id = id;
		this.assPro = assPro;
		this.name = name;
		this.desc = desc;
		this.assTable = assTable;
		this.assId = assId;
		this.assName = assName;
		this.assDesc = assDesc;
		this.type = type;
	}*/
	public CheckData(String table,String id,String assPro,String name,String statusField,String desc,
			String assTable,String assId, String assName,String assStatusField,String assDesc,String type,String assCode){
		this.table = table;
		this.id = id;
		this.assPro = assPro;
		this.name = name;
		this.desc = desc;
		this.assTable = assTable;
		this.assId = assId;
		this.assName = assName;
		this.assDesc = assDesc;
		this.type = type;
		this.statusField = statusField;
		this.assStatusField = assStatusField;
		this.assCode = assCode;
	}

	/**
	 *
	 * @param table           关联表
	 * @param id              关联表的id字段
	 * @param assPro          关联表的关联字段
	 * @param name            关联表的name字段
	 * @param statusField     关联表的状态字段
	 * @param desc            关联表的描述
	 * @param assTable        被关联表
	 * @param assId           被关联表的id字段
	 * @param assName         被关联表的name字段
	 * @param assStatusField  被关联表的status字段
	 * @param assDesc         被关联表的描述
	 * @param type            类型，1为普通关联 2为带中间表关联3黑名单的特殊
	 */
	public CheckData(String table,String id,String assPro,String name,String statusField,String desc,
			String assTable,String assId, String assName,String assStatusField,String assDesc,String type){
		this.table = table;
		this.id = id;
		this.assPro = assPro;
		this.name = name;
		this.desc = desc;
		this.assTable = assTable;
		this.assId = assId;
		this.assName = assName;
		this.assDesc = assDesc;
		this.type = type;
		this.statusField = statusField;
		this.assStatusField = assStatusField;
		this.assCode = assId;
	}
	
	public CheckData(String table,String id,String name,String statusField,String desc,
			String assTable,String assId, String assName,String assStatusField,String assDesc,
			String midTable, String midId, String assMidId,String type){
		this.table = table;
		this.id = id;
		this.name = name;
		this.desc = desc;
		this.assTable = assTable;
		this.assId = assId;
		this.assName = assName;
		this.assDesc = assDesc;
		this.midTable = midTable;
		this.midId = midId;
		this.assMidId = assMidId;
		this.type = type;
		this.statusField = statusField;
		this.assStatusField = assStatusField;
	}
	
	public CheckData(String table,String id,String name,String statusField,String desc,
			String assTable,String assId, String assName,String assStatusField,String assDesc,
			String midTable, String midId, String assMidId,String type,String midType,String mapType){
		this.table = table;
		this.id = id;
		this.name = name;
		this.desc = desc;
		this.assTable = assTable;
		this.assId = assId;
		this.assName = assName;
		this.assDesc = assDesc;
		this.midTable = midTable;
		this.midId = midId;
		this.assMidId = assMidId;
		this.midType=midType;
		this.type = type;
		this.mapType = mapType;
		this.statusField = statusField;
		this.assStatusField = assStatusField;
	}


	public String getTable() {
		return table;
	}


	public void setTable(String table) {
		this.table = table;
	}


	public String getId() {
		return id;
	}


	public void setId(String id) {
		this.id = id;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public String getDesc() {
		return desc;
	}


	public void setDesc(String desc) {
		this.desc = desc;
	}


	public String getAssTable() {
		return assTable;
	}


	public void setAssTable(String assTable) {
		this.assTable = assTable;
	}


	public String getAssId() {
		return assId;
	}


	public void setAssId(String assId) {
		this.assId = assId;
	}


	public String getAssName() {
		return assName;
	}


	public void setAssName(String assName) {
		this.assName = assName;
	}


	public String getAssDesc() {
		return assDesc;
	}


	public void setAssDesc(String assDesc) {
		this.assDesc = assDesc;
	}


	public String getMidTable() {
		return midTable;
	}


	public void setMidTable(String midTable) {
		this.midTable = midTable;
	}


	public String getMidId() {
		return midId;
	}


	public void setMidId(String midId) {
		this.midId = midId;
	}


	public String getAssMidId() {
		return assMidId;
	}


	public void setAssMidId(String assMidId) {
		this.assMidId = assMidId;
	}

	public List<Object> getIds() {
		return ids;
	}

	public void setIds(List<Object> ids) {
		this.ids = ids;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getAssPro() {
		return assPro;
	}

	public void setAssPro(String assPro) {
		this.assPro = assPro;
	}

	public String[] getStatus() {
		return status;
	}

	public void setStatus(String[] status) {
		this.status = status;
	}

	public String getMapType() {
		return mapType;
	}

	public void setMapType(String mapType) {
		this.mapType = mapType;
	}

	public String getStatusField() {
		return statusField;
	}

	public void setStatusField(String statusField) {
		this.statusField = statusField;
	}

	public String getAssStatusField() {
		return assStatusField;
	}

	public void setAssStatusField(String assStatusField) {
		this.assStatusField = assStatusField;
	}

	public String getAssCode() {
		return assCode;
	}

	public void setAssCode(String assCode) {
		this.assCode = assCode;
	}
	
	public String getMidType() {
		return midType;
	}

	public void setMidType(String midType) {
		this.midType = midType;
	}
	
	
	
	
}
